using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;

namespace Extensions.Configuration.Database.Tests
{
    public class Startup
    {
        public void ConfigureHost(IHostBuilder hostBuilder)
        {
            hostBuilder.ConfigureHostConfiguration(builder =>
            {
                // 这里清空所有配置，避免脏数据
                // options =>
                // {
                //     options.UseInMemoryDatabase("test_db");
                // }
                builder.Sources.Clear();
                // builder.AddDatabase();
            });
        }

        public void ConfigureServices(IServiceCollection services)
        {
        }
    }
}